package com.phone.utils;

/**
 * Created by tisen on 2017/8/7.
 */
public class TextUtil {
    public static boolean textIsEmpty(String text) {
        if (text == null || text.isEmpty()) {
            return true;
        } else {
            return false;
        }
    }
    public static String phoneEncryption(String phone){
        return phone.substring(0,3)+"****"+phone.substring(7,11);
    }
}
